<?php
	include '../models/Model.php';
	$model=new Model();
	$admin=2;
	$users=1;
	$userID=$_POST['userid'];
	$userAccName=$_POST['inputAccName'];
	$userName=$_POST['userForm$tbFamilyName'];
	$userPassword=$_POST['rpwd'];
	$userKind=$_POST['level'];
	$userTel=$_POST['userForm$tbTel'];
	$userEmail=$_POST['userForm$tbMailAddress2'];
		
	$user=new User($userID,$userAccName,$userPassword,$userKind,$userName,$userTel,$userEmail);
	$model->updateUser($user);
	header("Location:./userManagerController.php");
?>